package com.ai.entity.made.camera;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FunctionSwitchAlgorithmBO implements Serializable {

    private String type;

    private String spot;

    private Integer num;

    private JSONArray spots;

    private Integer threshold;

    private String timeInterval;

    public void setTimeInterval(String timeInterval) {
        this.timeInterval = timeInterval.replaceAll(":", "");
    }
}